<%-- 
    Document   : Delete_Candidate_data
    Created on : Aug 30, 2013, 11:29:14 AM
    Author     : 4410s
--%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.Iterator"%>
<%@page import="java.util.Set"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Delete Candidate Page</title>
        <link rel="stylesheet" type="text/css" href="css/style.css"/>
       <style type="text/css">
            table.styletable{
                font-family: verdana,arial,sans-serif;
                font-size:11px;
                color:black;
                width: 100%;
                
            }
            table.styletable th {
                background:#990000;
                font-size: 13px;
                color: white;
                
                padding: 8px;
               
            }
            table.styletable td {
                background:#ff99ff;
                padding: 8px;
               
            }
        </style>
    </head>
    <body>
        <%      
            HashMap hm = (HashMap) request.getSession().getAttribute("Candidate_Data");
            Set charges = hm.keySet();
            Iterator itr = charges.iterator();
        %>
        <form method="POST">
            <table border="1" class="styletable">
                <thead>
                    <tr>
                        <th>UserName</th>
                        <th>Email ID</th>
                        <th>First Name</th>
                        <th>Middle Name</th>
                        <th>Last Name</th>
                        <th>Avatar</th>
                        <th>Gender</th>
                        <th>Marital Status</th>
                        <th>Delete</th>


                    </tr>
                </thead>

                <tbody>

                    <%
                            int sno = 0;
                    while (itr.hasNext()) {
                        Object keyid = itr.next();
                        HashMap hm3 = (HashMap)hm.get(keyid);
                        sno++;
                    %>
                    <tr>
                        <td><% out.println(hm3.get("username").toString());%></td>
                        <td><% out.println(hm3.get("email_id").toString());%></td>
                        <td><% out.println(hm3.get("first_name").toString());%></td>
                        <td><% out.println(hm3.get("middle_name").toString());%></td>
                        <td><% out.println(hm3.get("last_name").toString());%></td>
                        <td><div><img src="avatar/<% out.println(hm3.get("avatar"));%>" width="50" height="50" /></div></td>
                        
                        <td><% out.println(hm3.get("gender").toString());%></td>
                        <td><% out.println(hm3.get("marital_status").toString());%></td>

                        <%--  <td><a style="text-decoration: none" href="View_Candidate_Data?user=<% out.println(hm3.get("username").toString());%>"><img src="images/update.png" border="0" width="25" height="25" alt="Update"/>
                          </a></td> --%>
                            <td><a style="text-decoration: none" href="Delete_Candidates_data?username=<% out.println(hm3.get("username").toString());%>"><img src="images/Delete.png" border="0" width="25" height="25" alt="Delete"/> </a></td>
                    </tr>
                    <%
                        }
                    %>
                </tbody>
            </table>
        </form>
    </body>
</html>
